// aboutdlg.h : interface of the CAboutDlg class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_ABOUTDLG_H__4545A645_B53D_4ED9_A927_76DA318EB086__INCLUDED_)
#define AFX_ABOUTDLG_H__4545A645_B53D_4ED9_A927_76DA318EB086__INCLUDED_

#include "resource.h"
#include <Xmemdc.h>

#include "XDialogImpl.h"

class CAboutDlg : public CXDialogImpl<CAboutDlg>//public CDialogImpl<CAboutDlg>
{
public:
	enum { IDD = IDD_ABOUTBOX };

	BEGIN_MSG_MAP_EX(CAboutDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
		COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
		MESSAGE_HANDLER(WM_PAINT, OnPaint)
		MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBkgnd)
		MSG_WM_COMMAND(OnCommand)
	END_MSG_MAP()

	LRESULT OnCommand(UINT , int nMsg, HWND hWnd)
	{
		if (nMsg == ID_CUSTOM_CLOSE_BUTTON)
		{
			int a = 0;
		}
		int a = 0;
		return 1;
	}

	LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnEraseBkgnd(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);

	LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
};

#endif // !defined(AFX_ABOUTDLG_H__4545A645_B53D_4ED9_A927_76DA318EB086__INCLUDED_)
